package com.jeecms.wicool.manager.product;


import com.jeecms.cms.entity.main.CmsUser;
import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.entity.product.Product;

import java.util.List;

public interface ProductMng {
    public Pagination getPage(Integer productCateId, String productName, int pageNo, int pageSize, CmsUser user);
    
    public Pagination getPageForVip(Integer productCateId, String productName, int pageNo, int pageSize, CmsUser user);

    public Product findById(Integer id);

    public Product update(Product bean, Integer shopId, Integer productCateId);

    public Product save(Product bean, Integer shopId, Integer productCateId);

    public Product deleteById(Integer id);

    public Product[] deleteByIds(Integer[] ids);

    public Integer getMaxItemNo();

    public List<Product> getAll(Integer productCateId);
    
    public void saveProductInnerRelation(Integer[] id,Integer[] productId,String[] type,String[] value);
    
}